package com.zwt.configuration;

import com.zwt.feign.UserFeign;
import feign.Feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * Created by zwt on 2018/8/30.
 *
 * 禁用指定Feign客户端Hystrix的配置类
 */
@Configuration
public class FeignDisableHystrixConfig {

    @Bean
    @Scope("prototype")
    public Feign.Builder feignBuilder(){
        return Feign.builder();
    }
}
